package com.fleapx.spring.hook.springhooktest.aware;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@Import(com.fleapx.spring.hook.springhooktest.aware.ImportAwareTest.class)
public class ConfigAware {
    @Bean
    public ApplicationContextAwareTest  creatApplicationContextAwareTest(){
        return new ApplicationContextAwareTest();
    }
    @Bean
    public BeanFactoryAwareTest  creatBeanFactoryAwareTest(){
        return new BeanFactoryAwareTest();
    }
    @Bean
    public EnvironmentAwareTest  creatEnvironmentAwareTest(){
        return new EnvironmentAwareTest();
    }
    @Bean(name = "beanNameAwareTest")
    public BeanNameAwareTest  creatBeanNameAwareTest(){
        return new BeanNameAwareTest();
    }
}
